/*
 *  Copyright 2022 Collate.
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *  http://www.apache.org/licenses/LICENSE-2.0
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

@import (reference) '../../styles/variables.less';

@quick-filters-container-height: 86px;

.explore-page {
  .sorting-dropdown-container {
    .ant-typography {
      color: @grey-700;
      font-weight: 500;
    }

    svg {
      color: @grey-700;
    }
  }

  .explore-icon {
    width: 16px;
    height: 16px;
  }

  .explore-tab-label {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
  }

  .explore-left-panel {
    position: sticky;
    top: 0;
    overflow-y: auto;
    z-index: 10;
    display: flex;
    flex-direction: column;

    .custom-menu {
      .ant-menu-item {
        height: 36px;
        line-height: 36px;
      }
    }

    .ant-card {
      flex: 1;
    }
  }

  .explore-right-panel {
    position: sticky;
    top: 0;
    border-radius: 8px;
    overflow: hidden;
    padding-right: 0px !important;
    padding-left: 0px !important;
  }

  .explore-main-container {
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
    overflow-x: hidden;
  }

  .explore-data-container {
    height: calc(
      100vh - @om-navbar-height - @quick-filters-container-height - @size-mlg
    );
    overflow-y: auto;
    margin-right: 0;
  }

  .explore-main-card {
    .ant-card-body {
      height: 100%;
      overflow-y: auto;
    }
  }

  .quick-filters-container {
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .explore-tree {
    overflow: auto;

    .ant-tree-switcher-icon {
      width: 12px;
      height: 12px;
      color: @grey-4;
    }

    .ant-tree-switcher_open:hover,
    .ant-tree-switcher_close:hover {
      background-color: @grey-2;
    }

    .ant-tree-title {
      width: 100%;
      padding: 4px;
    }

    .ant-tree-node-selected {
      background-color: @radio-button-checked-bg !important;
    }

    .ant-tree-treenode {
      padding: 0;
    }
  }
}
